//
//  NSError+SaError.m
//  SaaS
//
//  Created by 迟建国 on 2019/11/21.
//  Copyright © 2019 SA. All rights reserved.
//

#import "NSError+SaError.h"
#import <objc/runtime.h>
static NSString *nameKey = @"nameKey"; //那么的key

@implementation NSError (SaError)

/**
 setter方法
 */
- (void)setParamStr:(NSString *)paramStr {
    objc_setAssociatedObject(self, &nameKey, paramStr, OBJC_ASSOCIATION_COPY);
}

/**
 getter方法
 */
- (NSString *)paramStr {
    return objc_getAssociatedObject(self, &nameKey);
}
@end
